package org.example.Thread01;

public class Dome_Thread13 {
    public static void main(String[] args) throws InterruptedException {
        MyTimer timer=new MyTimer();
        timer.schedule(()->{
            System.out.println("任务1...");
        },1000);
        timer.schedule(()->{
            System.out.println("任务2...");
        },2000);
        timer.schedule(()->{
            System.out.println("任务3...");
        },3000);
//        timer.schedule(null,-10);
    }
}
